<template>
  <div class="index-container">
    <div class="sidebar">
      <router-link to="/book" class="nav-link">书籍管理</router-link>

    </div>
    <div class="content">
      <router-view />
    </div>
  </div>
</template>

<script>
export default {
  name: "IndexView",
};
</script>

<style scoped>
.index-container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 200px;
  background-color: #f4f4f4;
  padding: 20px;
  border-right: 1px solid #ccc;
}

.nav-link {
  display: block;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}

.nav-link:hover {
  background-color: #ddd;
}

.content {
  flex: 1;
  padding: 20px;
}
</style>